package IO;

import java.awt.BorderLayout;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import java.awt.FlowLayout;
import javax.swing.JButton;
import javax.swing.SwingConstants;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.border.SoftBevelBorder;
import javax.swing.border.BevelBorder;

public class UserGUI extends JFrame 
{
	private static final long serialVersionUID = -1610267257922080111L;
	private JPanel contentPane;
	private JButton btnNewAgent = new JButton("New Agent");
	private JButton btnModifyAgent = new JButton("Modify Agent");
	private JButton btnDeleteAgent = new JButton("Delete Agent");
	
	public UserGUI()
	{
		contentPane = new JPanel();
		contentPane.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));
		setContentPane(contentPane);
		contentPane.setLayout(new GridLayout(3, 0, 0, 0));
		
		contentPane.add(btnNewAgent);		
		contentPane.add(btnModifyAgent);		
		contentPane.add(btnDeleteAgent);
		
		btnNewAgent.addActionListener(new ActionListener()
		{
			public void actionPerformed(ActionEvent e) 
			{
				NewAgentGUI.NewAgent();				
			}			
		});
		
		btnModifyAgent.addActionListener(new ActionListener()
		{
			public void actionPerformed(ActionEvent e) 
			{
				ModifyAgentGUI.ModifyAgent();				
			}			
		});
		
		btnDeleteAgent.addActionListener(new ActionListener()
		{
			public void actionPerformed(ActionEvent e) 
			{
				DeleteAgentGUI.DeleteAgent();			
			}			
		});
		
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		setVisible(false);
		setResizable(false);
		setBounds(100, 100, 450, 300);
		
	}

}
